home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pi-5ways.zip / READ.ME < prev   
Text File  |  1991-06-15  |  989b  |  25 lines

  1.                             FIVE WAYS TO CALCULATE π
  2.  
  3. The five included files illustrate different methods to appoximate π.  PI1.C, 
  4. PI2.C, and PI3.C use series expansions.  CANNON.C simulates firing a cannon 
  5. at a circular pond enclosed (inscribed) in a square of land.  PINDROP.C is 
  6. the notorious pin drop simulation, whereby you drop a pin on a wood plank 
  7. floor, keep track of how many times the pin falls on a crack, and take the 
  8. ratio of "hits" to total drops.
  9.  
  10. The source code should compile with no problems on just about any version of 
  11. C, with a couple of trivial changes. You may have to " #include <math.h>" at 
  12. the beginning of the files.  A couple of the files use the function 
  13. "clrscrn()", which clears the screen.  You may need to substitute an 
  14. equivalent function call, or just plain delete that line.
  15.  
  16. These files are placed into the Public Domain for educational purposes.  
  17.  
  18. Enjoy.
  19.  
  20. Mendel Cooper
  21. 3138 Foster Ave.
  22. Baltimore, MD 21224
  23.  
  24. 06/91
  25.